package cn.cat;

import cn.cat.ip2region.IpUtil;
import cn.cat.ip2region.RegionEntity;
import cn.cat.qqwry.IPLocation;
import cn.cat.qqwry.Location;


/**
 * Hello world!
 */
public class App {
    public static void main(String[] args) throws Exception{
        System.out.println("Hello World!");
        System.out.println("=============ip2region=============");
        IpUtil ipUtil = new IpUtil();
        RegionEntity regionEntity = ipUtil.getCityInfo("27.115.83.0");
        System.out.println(regionEntity.toString());
        System.out.println("================qqwry.dat===================");
        IPLocation ipLocation = new IPLocation("qqwry.dat");
        Location location = ipLocation.fetchIPLocation("27.115.83.0");
        System.out.println(location.toString());

    }
}
